home *** CD-ROM | disk | FTP | other *** search
/ Our Solar System / Our Solar System.iso / miscprog / targ / help.c < prev    next >
Text File  |  1987-03-25  |  7KB  |  177 lines

  1. /* help.c -- Help screens and help-display function for Targ-Hurt ESP
  2.              Trainer
  3.  
  4.    History: rhs 23-mar-87
  5. */
  6.  
  7. #include "mancon.h"
  8. #include "declares.h"
  9. #include <stdio.h>
  10.  
  11. IMPORT gi_fg1, gi_bg1;
  12.  
  13.  
  14.  
  15. #define HELP1_LINES 22
  16. static char *help1[] =
  17. {
  18. "                     Using the Targ-Hurt ESP Trainer",
  19. "",
  20. "     You can use this program to practice clairvoyance or precognition.",
  21. "Clairvoyance is, basically, telling something which is has already happened",
  22. "and precognition is foretelling something which is about to happen.",
  23. "An example of clairvoyance is when you go through a day feeling certain",
  24. "that something dreadful has happened, to find out later that your house",
  25. "has burned down in your absence.  An example of precognition is when you",
  26. "go through a day feeling certain that something bad is about to happen,",
  27. "then your house burns down that night.",
  28. "",
  29. "     This program will not burn your house down, but it does let you",
  30. "practice clairvoyance and precognition with a method developed by NASA-",
  31. "sponsored scientists.",
  32. "",
  33. "",
  34. "",
  35. "",
  36. "",
  37. "",
  38. "                 Press ESC to return to main menu,",
  39. "                 any other key to continue viewing",
  40. };
  41.  
  42.  
  43. #define HELP2_LINES 22
  44. static char *help2[] =
  45. {
  46. "",
  47. "     This program creates facts which you must either tell or foretell.",
  48. "The facts are simple: the program randomly selects, a compass-direction,",
  49. "north, south, east, or west.  In clairvoyance mode, the machine selects",
  50. "the direction, then you try to tell what direction it selected.  In",
  51. "precognition mode, you try to foretell what direction the program will",
  52. "select-- you make your prediction, there is a delay of one, two, or",
  53. "three seconds (you specify the delay), then the machine makes a selection",
  54. "and shows it to you.",
  55. "",
  56. "     The program always shows you what ITS selection was.",
  57. "",
  58. "     You make your selections by pressing arrow keys: up is north, down is",
  59. "is south, left is west, and right is east.  If your selection matches the",
  60. "program's selection, a \"hit\" is recorded at the top of the screen.  Each",
  61. "time you enter a guess, the number of tries is incremented.  The percentage",
  62. "of hits to tries is displayed, and any percentage over 25% is better than",
  63. "what you could expect from purely random guessing.",
  64. "",
  65. "",
  66. "                 Press ESC to return to main menu,",
  67. "                 any other key to continue viewing"
  68. };
  69.  
  70.  
  71. #define HELP3_LINES 22
  72. static char *help3[] =
  73. {
  74. "",
  75. "     Press P, to pass, when you do not feel sure that you know the program's",
  76. "selection.  No \"try\" will be recorded and your score is uneffected.  The",
  77. "program will show you what its selection was.  Try not to pass too often,",
  78. "it distorts the measurement of your progress.",
  79. "",
  80. "     Pressing R resets the number of hits and tries to zero.  The original",
  81. "Targ-Hurt machine automatically reset the score after 25 tries.  This pro-",
  82. "gram does not reset your score, but you should reset it yourself period-",
  83. "ically so that each hit has a greater effect on your hit percentage.",
  84. "",
  85. "     There are five messages which help indicate your progress: \"Traces",
  86. "of ESP\" is displayed when you are performing a little better than chance.",
  87. "\"ESP ability present\", \"Useful at Las Vegas\", \"Exceptional ESP ability\"",
  88. "and \"Psychic!, Medium!, Oracle!\" are the other messages.  If you consist-",
  89. "ently get \"Exceptional ESP ability\", you are scoring well above the pure-",
  90. "chance level, and may wish to consider seeking professional parapsychological ",
  91. "testing. \"Psychic! Medium! Oracle!\" only appears when your hit percent is ",
  92. "near 60%, a truly remarkable performance.",
  93. "",
  94. "                 Press ESC to return to main menu,",
  95. "                 any other key to continue viewing"
  96. };
  97.  
  98.  
  99.  
  100. #define HELP4_LINES 24
  101. static char *help4[] =
  102. {
  103. "History: The Targ-Hurt ESP Trainer was originally a box designed in 1966",
  104. "         by Russell Targ, a plasma physicist, and David B. Hurt, an engineer.",
  105. "         A short note in Electronics magazine (Dec. 26, 1966, p36) reported",
  106. "         that Targ was working on an ESP teaching box.  The subject tries to",
  107. "         guess which of four buttons will light up and the box \"reinforces",
  108. "         by punishment as well as reward.\"  Five years later, with a grant",
  109. "         from the Parapsychology Foundation (founded by the well-known spirit-",
  110. "         ualist medium Eileen J. Garrett), Targ and Hurt designed and built",
  111. "         a more advanced ESP teaching device.  In 1972 Targ was hired by the",
  112. "         Electronics and Bioengineering Laboratory of the Stanford Research",
  113. "         Institute to continue his research.  The research was made possible",
  114. "         by a grant of $80,000 from NASA, with the Jet Propulsion Laboratory",
  115. "         of the California Institute of Technology serving as administrator.",
  116. "         The research concluded that the subjects of the experiments, mostly",
  117. "         school children, failed to guess better than approximately one",
  118. "         successful guess for every three incorrect guesses.  The research",
  119. "         grant was not extended.",
  120. "",
  121. "         This version of the ESP Trainer was written by Rudy H. Smith",
  122. "         in March, 1987.  Mr. Smith has since undergone a successful",
  123. "         surgical procedure which removed the tongue from his cheek.",
  124. "         While the research by Targ and Hurt was actually conducted,",
  125. "         it remains a mystery why Mr. Smith wasted several evenings",
  126. "         developing a computer version of this ridiculous machine."
  127. };
  128.  
  129.  
  130. /* get_esc -- Returns TRUE if user presses escape key, FALSE if not.
  131. */
  132. #define ESC 27
  133. int get_esc()
  134. {  char ch;
  135.    getkey(&ch); 
  136.    if(ch==ESC)
  137.       return(TRUE);
  138.    else
  139.       return(FALSE);
  140. }
  141.  
  142.  
  143. /* disp_help -- Displays help screens.
  144. */
  145. void disp_help()
  146. {
  147.    int j;
  148.    disp_cls();
  149.    disp_cursor(OFF);
  150.    for(j=0; j<HELP1_LINES; j++)
  151.       colrprtf(1, gi_fg1, gi_bg1, "%s\n", help1[j]);
  152.    if(get_esc()) return; 
  153.  
  154.    disp_cls();
  155.    for(j=0; j<HELP2_LINES; j++)
  156.       colrprtf(1, gi_fg1, gi_bg1, "%s\n", help2[j]);
  157.    if(get_esc()) return; 
  158.  
  159.    disp_cls();
  160.    for(j=0; j<HELP3_LINES; j++)
  161.       colrprtf(1, gi_fg1, gi_bg1, "%s\n", help3[j]);
  162.    if(get_esc()) return; 
  163.  
  164.    disp_cls();
  165.    for(j=0; j<HELP4_LINES; j++)
  166.       colrprtf(1, gi_fg1, gi_bg1, "%s\n", help4[j]);
  167.    get_esc();
  168. }
  169.  
  170. /* Test main */
  171. /*
  172. main()
  173. {
  174.    disp_help();
  175. }
  176. */
  177.